<?php
ifi!perms_check('admin', 'panel')) {
	redirect('index.php?module=error&error=auth_error');
	exit;
}

plugins('admin/main/1/');

if(perms_check('admin', 'cache'))
$insert='<td align="right" width="50%"><br />
<a href="index.php?function=delete_cache&amp;what=sql"><b>'.$lang['admin_delete_cache_sql'].'</b></a><br />
<a href="index.php?function=delete_cache&amp;what=tpl"><b>'.$lang['admin_delete_cache_tpl'].'</b></a>
</td>';

$content=plugins('admin/main/2/', 'plugins/', true);

$content = '
<table border="0" width="100%">
<tr valign="top">
<td width="50%">

<table border="0" width="100%" class="tabelka2">
<tr>
<td class="row_3" align="center" colspan="2"><b>'.$lang['non_auth'].'</b></td>
</tr>
'.$content.'  
</table>   

</td>

'.$insert.'
</tr>
</table>
';

$content=string_template(read_file('middle.php'), array('theme_path' => $GLOBALS['theme_path'], 'content' => $content, 'description'=>$lang['admin']));
//
?>
